import axios from 'axios'
import qs from 'qs'

const insdance  = axios.create({
    timeout:3000
})

insdance.interceptors.request.use( config =>{
    if(config.method == 'post'){
        config.data = qs.stringify(config.data)
    }
    return config;
}, error=>{

})

export default insdance;